<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>制作简易的当当购物车页面</title>
    <link type="text/css" rel="stylesheet" href="css/cartStyle.css" />
</head>
<body>

<div class="content">
    <div class="logo">
        <img src="images/dd_logo.jpg"><span onclick="close_plan();">关闭</span>
    </div>
    <div class="cartList">
        <ul>
            <li onclick="collection();">移入收藏</li>
            <li onclick="del();">删除</li>
            <li onclick="collection();">移入收藏</li>
            <li onclick="del();">删除</li>
            <li><span onclick="accounts();">结 算</span></li>
        </ul>
    </div>
</div>
<!--<script type="text/javascript" src="js/shopping.js"></script>-->
<script>
	function close_plan(){
		close();
	}
	function collection(){
		var yiRu=confirm("确定移入收藏吗?");
		if(yiRu==true){
			alert("移入成功!");
		}
	}
	function del(){
		var shanChu=confirm("确定删除吗?");
		if(shanChu==true){
			alert("删除成功!");
		}
	}
	function accounts(){
		var jieSuan=confirm("您本次购买的商品信息如下:\n\n商品名称:白岩松:白说,岛上书店;\n商品数量:2件\n商品总计：46.00；\n运费：0元；\n\n请确认以上信息是否有误！！！");
		if(jieSuan==true){
			alert("您的订单已提交!");
		}
	}
</script>
</body>
</html>